﻿namespace DotNetHackathon.GBA.ApiCommon.ExceptionHandling
{
    public interface IExceptionToErrorResultConverter
    {
        /// <summary>
        /// 转换异常
        /// </summary>
        /// <param name="exception">异常对象</param>
        /// <returns></returns>
        ErrorResult Convert(Exception exception);
    }
}
